package Basic_Search;

public class Demo1 {
    public static void main(String[] args) {
        int []num = {81,4,7,5,101,125,136,81,47,85};
        int n = 81;
        System.out.println(basicSearch(num,n));
    }
    public static boolean basicSearch(int []num,int n){
        for (int i = 0; i < num.length; i++) {
            if(num[i] == n){
                return true;
            }
        }
        return false;
    }
}
